import random
with open("phone",mode="w+",encoding="utf-8") as file:
    for i in range(50):
        phone = str(random.randint(18800000000,18899999999))
        file.write(f"第{i+1}个手机号:"+phone+"\n")
    file.seek(0)
    print(file.read())